﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace MovingFromPartialViews.Models
{
	[Serializable]
	public class IndexModel
	{
		public IEnumerable<Category> Categories { get; set; }
		public IEnumerable<string> AllCategories
		{
			get { return Categories.Select(c => c.Name).OrderBy(s => s); }
		}
	}
}